﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Avaliacao.Scenes
{
    class Intro : BaseScene
    {
        SpriteFont arial36;

        public Intro(ContentManager Content, GameWindow Window): base(Content, Window)
        {
            arial36 = Content.Load<SpriteFont>("Arial36");
        }

        public override void Update(GameTime gameTime, KeyboardState keyboard, KeyboardState last_keyboard, MouseState mouse, MouseState last_mouse)
        {
            if (keyboard.IsKeyDown(Keys.Enter) && !last_keyboard.IsKeyDown(Keys.Enter))
            {
                Game1.current_state = Game1.GameStates.IN_GAME;
                Game1.current_level = Game1.GameLevels.LEVEL_1;
            }
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(arial36, "Tower Defense game for fun!", new Vector2((Window.ClientBounds.Width / 2 - Window.ClientBounds.Width / 3), Window.ClientBounds.Height / 2), Color.White);
        }
    }
}
